<%@ page language="java" import="java.util.ArrayList, com.erclab.internal.xpresso.options.*" %>
<div id="FormOptions">
<%  ArrayList options = theForm.getOptions();
	if (options != null){ 
		for (int i = 0; i < options.size(); i++){
			Option o = (Option)options.get(i);
%>
		<div id="<%=o.getStyle()%>Option">			
			<span class="<%=o.getStyle()%>OptionImage"><img src="<%=o.getImage()%>"></span>
			<span class="<%=o.getStyle()%>OptionLink"><a href="<%=o.getLink()%>"><%=o.getOptionText()%></a></span>
			<% if (Settings.getAdminMode()){ %>
				<span><a href="FormOptions.form?action=update&uniqueKeyValue=<%=theForm.getIdForm()%>">*</a></span>
			<% } %>
		</div>
<%  	}
	} 
	// Display Admin Options
	if (Settings.getAdminMode()){ %>
	<div id="AdminOptions">
		<div id="AdminForm">
			<a href="Form.config.form?action=update&uniqueKeyValue=<%=theForm.getIdForm()%>">Edit this form</a>
		</div>
		<div id="AdminFormElements">
			<a href="FormElements.config.report?uniqueKeyValue=<%=theForm.getIdForm()%>">List Form Elements</a>
		</div>
		<div id="AdminAddFormElement">
			<a href="FormElements.config.form?action=insert&uniqueKeyValue=<%=theForm.getIdForm()%>">Add Form Element</a>
		</div>
		<div id="AdminListOptions">
			<a href="FormOptions.config.report?uniqueKeyValue=<%=theForm.getIdForm()%>">List Form Options</a>
		</div>
		<div id="AdminAddOption">
			<a href="FormOptions.config.form?action=insert&uniqueKeyValue=<%=theForm.getIdForm()%>">Add Form Option</a>
		</div>
	</div>
	
<%	} %>
</div>